"""
AI集成模块 - URL配置
为AI功能预留的API路由接口
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from . import views
from . import views_prompt
from . import urls_prompt

# 创建路由器并注册视图集
router = DefaultRouter()
router.register(r'service-configs', views.AIServiceConfigViewSet, basename='ai-service-config')
router.register(r'request-logs', views.AIRequestLogViewSet, basename='ai-request-log')
router.register(r'question-generation', views.AIQuestionGenerationViewSet, basename='ai-question-generation')
router.register(r'auto-grading', views.AIAutoGradingViewSet, basename='ai-auto-grading')
router.register(r'analysis', views.AIAnalysisViewSet, basename='ai-analysis')
router.register(r'recommendations', views.AIRecommendationViewSet, basename='ai-recommendation')

# 注册提示词管理视图集
router.register(r'prompt-templates', views_prompt.PromptTemplateViewSet, basename='prompt-template')

app_name = 'ai_integration'

urlpatterns = [
    # 包含路由器生成的URL
    path('', include(router.urls)),
]
